package com.wondertek.poms.dao.pojo;

import com.wondertek.poms.common.utils.excel.annotation.ExcelField;
import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.groups.Default;

@Data
public class SellingPriceExcelPojo {

    @ExcelField(title = "售价名称", align = 2, sort = 1)
    @NotBlank(message = "售价名称不能为空", groups = {Default.class})
    @Pattern(regexp="[0-9]*", message="售价名称只能为数字" ,groups = {Default.class, GroupType.Update.class, GroupType.Delete.class})
    private String sellingPriceNum;

    @ExcelField(title = "计费点ID", align = 2, sort = 1)
    @NotBlank(message = "计费点ID不能为空", groups = {Default.class})
    @Pattern(regexp="[0-9]*", message="计费点Id只能为数字" ,groups = {Default.class, GroupType.Update.class, GroupType.Delete.class})
    private String productId;
}
